﻿using Unity.Entities;
using Unity.Mathematics;

namespace Jinndev.Tile2D {

    /// <summary>
    /// 通过坐标是否改变，来控制sequenceFrame.play的值
    /// </summary>
    public struct SequencePlayByPosition : IComponentData {

        public float3 lastPosition; // 记录上一帧坐标，通过判断是否相同决定是否播放
        public bool alwaysPlay; // 是否一直播放，无视坐标

    }

}
